﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BomShow.aspx.cs" Inherits="RGPWEB.admin.Hjbom.BomShow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
       <title></title>
    <link href="../../inc/Style/index.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/childindex.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/GridView.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    
        <asp:DetailsView ID="DVMateria" runat="server" 
            BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
            CellPadding="3" ForeColor="Black" GridLines="Vertical" Height="50px" 
            Width="224px" AutoGenerateRows="False" DataKeyNames="FItemID" 
            DataSourceID="ODSMateria">
            <FooterStyle BackColor="#CCCCCC" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <Fields>
                <asp:BoundField DataField="FName" HeaderText="FName" SortExpression="FName" />
                <asp:BoundField DataField="FNumber" HeaderText="FNumber" 
                    SortExpression="FNumber" />
                <asp:BoundField DataField="FModel" HeaderText="FModel" 
                    SortExpression="FModel" />
                <asp:BoundField DataField="FNote" HeaderText="FNote" SortExpression="FNote" />
            </Fields>
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#CCCCCC" />
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ODSMateria" runat="server" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetMaterialByFItemID" TypeName="t_ICItemBLL">
            <SelectParameters>
                <asp:ControlParameter ControlID="GVMateria" Name="FItemID" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
        <div style="height: 101px">
            <asp:GridView ID="GVMateria" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="FItemID" DataSourceID="OdsMainMateria" Height="16px" 
                Width="416px">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="FItemID" HeaderText="FItemID" ReadOnly="True" 
                        SortExpression="FItemID" />
                    <asp:BoundField DataField="FName" HeaderText="FName" SortExpression="FName" />
                    <asp:BoundField DataField="FDeleted" HeaderText="FDeleted" 
                        SortExpression="FDeleted" />
                    <asp:BoundField DataField="FNumber" HeaderText="FNumber" 
                        SortExpression="FNumber" />
                    <asp:BoundField DataField="FModel" HeaderText="FModel" 
                        SortExpression="FModel" />
                    <asp:BoundField DataField="FNote" HeaderText="FNote" SortExpression="FNote" />
                </Columns>
            </asp:GridView>
            <asp:ObjectDataSource ID="OdsMainMateria" runat="server" 
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetMaterials" 
                TypeName="t_ICItemBLL" CacheExpirationPolicy="Sliding"></asp:ObjectDataSource>
        </div>
    
    </div>
    <div>
    
        <asp:GridView ID="GVMainBom" runat="server" AutoGenerateColumns="False" BackColor="White" 
            BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
            ForeColor="Black" GridLines="Vertical">
            <FooterStyle BackColor="#CCCCCC" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#CCCCCC" />
        </asp:GridView>
    
        <asp:ObjectDataSource ID="ODSMainBom" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetMaterialByFItemID" 
            TypeName="t_ICItemBLL">
            <SelectParameters>
                <asp:ControlParameter ControlID="GVMateria" Name="FItemID" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    <div>
        <asp:GridView ID="GVSubBom" runat="server" BackColor="White" 
            BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
            ForeColor="Black" GridLines="Vertical">
            <FooterStyle BackColor="#CCCCCC" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#CCCCCC" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ODSSubBom" runat="server"></asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
